﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Win.DAL;
using Win.Model;

namespace Win.BLL
{
    public class TableBLL
    {
        TableDAL tableDAL = new TableDAL();

        public List<TableInfo> GetTables()
        {
            return tableDAL.GetTablesList();
        }

        public List<TableInfo> GetTableBYNT(string name,string type)
        {
            return tableDAL.GetTableBYNT(name, type);
        }

        public void AddTable(string name,string type)
        {
            tableDAL.AddTable(name, type);
        }

        public void DelTable(int id)
        {
            tableDAL.DelTable(id);
        }
    }
}
